.one-wrapper
  //- router-link(:to='{name: "ProductTask", params: {id: "59940f308bc59d6f9ce50992"}}') product
  //- router-link(:to='{name: "SignUpSMS"}') 登录
  .two-wrapper
    .product-lists
      ProductItem(v-for='item of allData', :key='item._id', :item='item')
      .item-wrapper.add
        .con 
          span.plus +
          span 新的产品
        .operation
          .btn.create(@click='isModal = true') 创建产品
          .btn.add(@click='isModal2 = true') 加入已有产品
      //- .item-wrapper.add(@click='isModal2 = true') 
      //-   span.plus +
      //-   span 加入已有产品
      //- .item-wrapper.create(@click='isModal = true')
      //-   span.plus +
      //-   span 创建产品
  Modal.productCreate(title="创建产品", v-model="isModal", :mask-closable="false", :closable="false", width='400')
    Form.form-wrapper(:label-width="60", :rules="ruleValidate", ref="formData", :model="formData")
      Form-item.input-wrapper(label='名称' prop="name")
        Input(size='large' v-model='formData.name')
      Form-item.input-wrapper(label='Logo')
        ImgUpload(:folderName='`productlogo/`', 
        :img='formData.logo', 
        :picroot='$api.link.qiniuUrl',
        imageName='productlogo-create'
        @fileUploaded='fileUploaded')
    div(slot='footer')
      Button(size='large' @click='isModal = false') 取消
      Button(type="primary" size='large' @click='handleCreate', :loading="modal_create_loading") 创建

  Modal.productCreate(title="加入产品", v-model="isModal2", :mask-closable="false", :closable="false", width='400')
    Form.form-wrapper(:label-width="60", :rules="ruleValidate2", ref="formData2", :model="formData2")
      Form-item.input-wrapper(label='产品ID' prop="productId")
        Input(size='large' v-model='formData2.productId')
      a.anotation(@click='$api.Openlink("https://ws1.sinaimg.cn/large/006tKfTcgy1fiungderraj31k412wgp3.jpg")') 如何查看产品ID？
    div(slot='footer')
      Button(size='large' @click='isModal2 = false') 取消
      Button(type="primary" size='large' @click='handleAdd', :loading="modal_create_loading") 加入
